﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SimpoBudgetDataModel;

namespace SimpoBudgetDisplayDummy
{
    class Display
    {
        static void Main(string[] args)
        {
            AccountList myAccountList = new AccountList();
            Bill myBill = new Bill();
            BillList myBillsList = new BillList();            
            BudgetItem myBudgetItem = new BudgetItem();
            BudgetItemList myBudgetItemList = new BudgetItemList();
            Paycheck myPaycheck = new Paycheck();
            PaycheckList myPaycheckList = new PaycheckList();            

            
            myBill.Id = (1);
            myBill.Name = "CapitalOne";
            myBill.Url = "www.capitalone.com";
            //myBill.Balance = 203.84;
            

            myBillsList.Add(myBill);

            myBill = new Bill();

            myBill.Id = (2);
            myBill.Name = "DirectTV";
            myBill.Url = "www.directtv.com";
           // myBill.Balance = 63.84;

            myBillsList.Add(myBill);

            foreach (Bill daBill in myBillsList)
           {
               Console.WriteLine("BillID: {0} Name: {1} URL: {2} Balance: {3}", daBill.Id, daBill.Name, daBill.Url, daBill.Balance );

           }

            myAccountList = myAccountList.Load();

            foreach (Account daAccount in myAccountList)
            {
                Console.WriteLine("AcctID: {0} Name: {1} URL: {2} Balance: {3} ", daAccount.Id, daAccount.Name, daAccount.Url, daAccount.Balance);

            }
                     
                   
            myPaycheck.Id = (1);
            myPaycheck.Name = "Husband";
            //myPaycheck.Amount = 2250.00;
            myPaycheck.Recourance = (2);

            myPaycheckList.Add(myPaycheck);

            myPaycheck = new Paycheck();

            myPaycheck.Id = (2);
            myPaycheck.Name = "Wife";
            //myPaycheck.Amount = 2250.00;
            myPaycheck.Recourance = (2);

            myPaycheckList.Add(myPaycheck);

           foreach (Paycheck daPaycheck in myPaycheckList)
            {
                Console.WriteLine("PaycheckID: {0} Name: {1} Amount: {2} Recourance: {3}", daPaycheck.Id, daPaycheck.Name, daPaycheck.Amount, daPaycheck.Recourance);

            }

           myBudgetItem.Id = (1);
           //myBudgetItem.MinimunAmount = 75.00;
           myBudgetItem.DueDate = new DateTime(2014, 3, 6);
           //myBudgetItem.TotalAmount = 98.50;
           myBudgetItem.PastDueDate = new DateTime(2014, 3, 16);
           //myBudgetItem.PastDueAmount = 125.00; 
           myBudgetItem.PlannedPayDate = new DateTime(2014, 3, 6);
           //myBudgetItem.PlannedPayAmount = 98.50;
           myBudgetItem.Status = "Active";

           myBudgetItemList.Add(myBudgetItem);

           myBudgetItem = new BudgetItem();

           myBudgetItem.Id = (2);
           //myBudgetItem.MinimunAmount = 65.00;
           myBudgetItem.DueDate = new DateTime(2014, 3, 9);
           //myBudgetItem.TotalAmount = 75.00;
           myBudgetItem.PastDueDate = new DateTime(2014, 3, 19);
           //myBudgetItem.PastDueAmount = 95.00;
           myBudgetItem.PlannedPayDate = new DateTime(2014, 3, 9);
           //myBudgetItem.PlannedPayAmount = 75.00;
           myBudgetItem.Status = "Active";

           myBudgetItemList.Add(myBudgetItem);

           foreach (BudgetItem daBudget in myBudgetItemList)
           {
               Console.WriteLine("BudgetItemID: {0} Minimun Amount: {1} Due Date: {2} Total Amount: {3} Past Due Date: {4} Past Due Amount: {5} Planned Pay Date: {6} Planned Pay Amount: {7} Status: {8} ", daBudget.Id, daBudget.MinimunAmount.ToString(".00"), daBudget.DueDate.ToShortDateString(), daBudget.TotalAmount.ToString(".00"), daBudget.PastDueDate.ToShortDateString(), daBudget.PastDueAmount.ToString(".00"), daBudget.PlannedPayDate.ToShortDateString(), daBudget.PlannedPayAmount.ToString(".00"), daBudget.Status);

           }
        }
    }
}
